<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>修改信息</title>
<script type="text/javascript" src="../Public/js/jquery.js"></script>
<script type="text/javascript" src="../Public/js/My97DatePicker/WdatePicker.js"></script>
<script>
function chk()
{
	msg = '';
	iswrong = false;
	if($('#classid').val()=='-1'){msg+="请选择栏目\n";iswrong=true;}
	if($('#linkname').val()==''){msg+="网站名称不能为空\n";iswrong=true;}
	if($('#linkurl').val() == ''){msg+"网站地址不能为空\n";iswrong=true;}
	if($('#money').val() == ''){msg+="金额不能为空\n"; iswrong = true;}
	if($('#contact').val() == ''){msg+="联系方式不能为空\n"; iswrong = true;}
	if(iswrong){
		alert(msg);
		return false;
	}
}

</script>
</head>
<body>

<div class="body">
<form action="__ACTION__" method="post" onsubmit="return chk()">
<input type="hidden" name="modifymsg" />
<input type="hidden" name="id" value="<?php echo ($data["id"]); ?>" />
<table>
<tr><td>栏目:</td><td><select name="classid" id="classid"><option value="-1">请选择栏目...</option>
<?php if(is_array($class)): $i = 0; $__LIST__ = $class;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><option value="<?php echo ($vo["id"]); ?>" <?php if(($vo["id"])  ==  $data["classid"]): ?>selected="selected"<?php endif; ?>><?php echo ($vo["classname"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?></select></td></tr>
<tr><td>网站名称：</td><td><input type="text" id="linkname" name="linkname" value="<?php echo ($data["linkname"]); ?>"/></td></tr>
<tr><td>网址：</td><td><input type="text" id="linkurl" name="linkurl" value="<?php echo ($data["linkurl"]); ?>"/></td></tr>
<tr><td>金额:</td><td><input type="text" id="money" name="money" value="<?php echo ($data["money"]); ?>"/></td></tr>
<tr><td>联系方式：</td><td><input type="text" id="contact" name="contact" value="<?php echo ($data["contact"]); ?>"/></td></tr>
<tr><td>到期时间:</td><td><input type="text" name="expiration" id="expiration" onClick="WdatePicker()" class="Wdate" value="<?php echo (date('Y-m-d',$data["expiration"])); ?>"/></td></tr>
<tr><td>客服信息：</td><td><textarea name="servermsg" ><?php echo ($data["servermsg"]); ?></textarea></td></tr>
<tr><td>备注:</td><td><textarea name="notice" ><?php echo ($data["notice"]); ?></textarea></td></tr>
<tr><td>是否有效:</td><td>无效:<input type="radio" name="vlid" <?php if(($data["vlid"])  ==  "1"): ?>checked="checked"<?php endif; ?> value="1" /> 有效:<input type="radio" name="vlid" <?php if(($data["vlid"])  ==  "0"): ?>checked="checked"<?php endif; ?> />
<tr><td colspan="2" align="center"><input type="submit" value="确定" /><input type="reset" value="重置" /></td></tr>
</table>
</form>

</div>


</body>
</html>